<?php /* Smarty version 2.6.26, created on 2014-01-21 14:58:23
         compiled from consume.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'regex_replace', 'consume.html', 22, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<div class="main fn-clear">
	<div class="my-title">
    	<h1>收支明细<span><a href="index.php?c=index&a=trade_record">交易记录</a></span></h1>
        <form id="record_form">
        <p>交易时间：<input name="trade_time_start" type="text" id="trade_time_start">&nbsp;&nbsp;到&nbsp;&nbsp;<input name="trade_time_end" type="text" id="trade_time_end">&nbsp;&nbsp;<input type="hidden" id="record_type" value="balance"/><input class="search" id="record_search" name="" type="button" value="查询">&nbsp;&nbsp;&nbsp;&nbsp;收入：<span class="pay-in"><?php echo $this->_tpl_vars['balance']['income']; ?>
</span>&nbsp;元&nbsp;&nbsp;&nbsp;&nbsp;支出：<span class="pay-out"><?php echo $this->_tpl_vars['balance']['pay']; ?>
</span>&nbsp;元</p></form>
    </div>
    <div class="list-box">
    	<table>
            <tbody>
            	<tr class="title">
                	<td class="time">时间</td>
                	<td class="name">交易名称</td>
                	<td class="amount">收支</td>
                	<td class="payment">流水号</td>
                	<!--<td class="payment">操作</td>-->
                </tr>
            	<?php $_from = $this->_tpl_vars['rs']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['cons']):
?>
            	<tr>
                	<td class="time"><?php echo $this->_tpl_vars['cons']['add_time']; ?>
</td>
                	<td class="name"><?php echo ((is_array($_tmp=$this->_tpl_vars['cons']['note'])) ? $this->_run_mod_handler('regex_replace', true, $_tmp, "/\：.*/", "") : smarty_modifier_regex_replace($_tmp, "/\：.*/", "")); ?>
：<?php echo $this->_tpl_vars['cons']['order_sn_main']; ?>
</td>
                	<td class="amount"><span class="pay-out"><?php echo $this->_tpl_vars['cons']['countvalue']; ?>
</span></td>
                	<td class="payment"><?php echo $this->_tpl_vars['cons']['order_sn_main']; ?>
</td>
                	<!--<td class="detail"><a href="" target="_blank">查看</a></td>-->
                </tr>
                <?php endforeach; endif; unset($_from); ?>
            </tbody>
            <tfoot>
            	<tr>
                	<td colspan="5">
                	<?php echo $this->_tpl_vars['page_str']; ?>

                    </td>
                </tr>
            </tfoot>
        </table>
    </div>
</div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "footer.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>